The parameter index is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
The parameter value is not used and could be removed.
This check looks for parameters in functions that are not used in the function
body and are not followed by other parameters which are used inside the function.
The function isBig will only return a specific value when its parameter is bigger than
5000. In any other case, it will implicitly return undefined.
This behaviour may not be what you had intended. In any case, you can add a
returnundefined to the other execution path to make the return value
explicit.
Loading history...
26
if (prev_report !== null) {
27
scrollTo = prev_report;
28
} else {
29
scrollTo = current_report;
30
}
31
return false;
32
}
33
});
34
if (scrollTo !== null) {
35
$('body,html').animate({
36
scrollTop: scrollTo.offset().top - 125
37
}, 600);
38
}
39
}
40
41
var event_header_date_element = $('.event-header__date');
42
if (event_header_date_element.length) {
43
var d = new Date();
44
var now_date = getCurrentDateStr();
45
var event_date = event_header_date_element.attr('datetime');
This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.